#ifndef _ALAPFORM_H_
#define _ALAPFORM_H_

#include <FBase.h>
#include <FUi.h>
#include <FUix.h>

class AlapForm :
	public Osp::Ui::Controls::Form,
	public Osp::Ui::IActionEventListener,
	public Osp::Uix::ISensorEventListener
{

// Construction
public:
	AlapForm(void);
	virtual ~AlapForm(void);
	bool Initialize(void);

// Implementation
protected:
	Osp::Ui::Controls::Label *__pPitchLabel;
	Osp::Ui::Controls::Label *__pAzimuthLabel;
	Osp::Ui::Controls::Label *__pRollLabel;
	Osp::Uix::SensorManager manager;
	float pitch, roll, azimuth;

public:
	virtual result OnInitializing(void);
	virtual result OnTerminating(void);
	virtual void OnActionPerformed(const Osp::Ui::Control& source, int actionId);

	void OnDataReceived(Osp::Uix::SensorType sensorType, Osp::Uix::SensorData& sensorData , result r);
};

#endif	//_ALAPFORM_H_
